# coding=utf-8
'''
Created on 2018年4月17日

@author: lijie
'''
from library.page_element.oa.login_page import TxtPassword,TxtUserName,BtnSubmit
from utilites.common import Common

class LoginPage:
    def __init__(self,dr):
        self.dr=dr
        self.run_info=Common().get_current_run_config()
        self.account=Common().get_app_config()[self.run_info['_envir']]
        
    def set_account_info_and_submit(self):
        TxtUserName(self.dr).input(self.account['username'])
        TxtPassword(self.dr).input(self.account['password'])
        BtnSubmit(self.dr).click()